package org.jdbcparser.rules;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlTransient;

@XmlType(name = "row")
public class RulesRow {

	// row table="TABLE_02" columns="COLUMN_03,COLUMN_04,COLUMN_05"
	private String table;
	private String columnsStr;
	private List<String> columns;
	private String regexp;

	@XmlAttribute(name = "table")
	public String getTable() {
		return table;
	}

	public void setTable(String table) {
		this.table = table;
	}

	@XmlAttribute(name = "columns")
	public String getColumnsStr() {
		return columnsStr;
	}

	public void setColumnsStr(String columnsStr) {
		this.columnsStr = columnsStr;
	}

	@XmlTransient
	public List<String> getColumns() {
		return columns;
	}

	public void setColumns(List<String> columns) {
		this.columns = columns;
	}

	public String getRegexp() {
		return regexp;
	}

	public void setRegexp(String regexp) {
		this.regexp = regexp;
	}

}
